//
//  UIView+BOCNetworkImage.h
//  BOCImageTools
//
//  Created by LeungChaos on 16/5/11.
//  Copyright © 2016年 liang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BOCImageDownloadTask;
@class BOCProgressHandler;

@interface UIView (BOCNetworkImage)

/**
 * cancel方法: 取消当前控件的所有DownloadTask
 */
- (void)cancelAllDownlaodTask;

/**
 *  添加task for key
 */
- (void)setDownloadTask:(BOCImageDownloadTask *)task forKey:(NSString *)key;

/**
 *  删除task for key
 */
- (void)removeDownloadTaskForKey:(NSString *)key;


@end
